{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "512ea189",
   "metadata": {},
   "outputs": [],
   "source": [
    "import datetime\n",
    "user_data = \"Gaoxinyan\"\n",
    "password_data = \"123456\"\n",
    "user_data_vip = \"gelu\"\n",
    "vip_password = \"327\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "ffd2f325",
   "metadata": {},
   "outputs": [],
   "source": [
    "count = 3\n",
    "while True:\n",
    "    count -= 1\n",
    "    username = input(\"请输入您的账户：\")\n",
    "    password = input(\"请输入您的密码：\")\n",
    "    if username in user_data or username in user_data_vip:  \n",
    "        if password in password_data : \n",
    "            print(\"欢迎普通用户\", username, \"登陆系统使用\")\n",
    "            count = 5\n",
    "        if password in vip_password :\n",
    "            print(\"欢迎vip用户\", username, \"登陆系统使用\")\n",
    "            count = 10"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "fc0c0b3b",
   "metadata": {},
   "outputs": [],
   "source": [
    "print((\"课程表查询系统\")\n",
    "    time = datetime.datetime.today().weekday()\n",
    "    week_time = int(time)\n",
    "    print(\"today:\"), print(week_time)\n",
    "    if week_time == 1:\n",
    "        print(\"1-3 英语阅读\")\n",
    "        print(\"8-10 python\")\n",
    "    elif week_time == 2:\n",
    "        print(\"3-5 英语听说\")\n",
    "        print(\"8-9 新闻评论\")\n",
    "        print(\"12-14 创业基础\")\n",
    "    elif week_time == 3:\n",
    "        print(\"3-5 融合新闻学\")\n",
    "        print(\"12-14 毛概理论\")\n",
    "    elif week_time == 4:\n",
    "        print(\"1-2 英语写作\")\n",
    "        print(\"8-9 广告文案\")\n",
    "    elif week_time == 5:\n",
    "        print(\"8-9 手绘基础\")\n",
    "        print(\"10-11 体育舞蹈\")\n",
    "    else:\n",
    "        print(\"放假啦\")\n",
    "        print(\"ddl又来了\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "1cb40520",
   "metadata": {},
   "outputs": [],
   "source": [
    "today = int(input('weekday:'))\n",
    "if today == 0:\n",
    "    print('周一要上2节课');\n",
    "    floor = 1\n",
    "    while floor == 1:\n",
    "        course = input('请输入你想查看的课程：')\n",
    "        if course == '8-10':\n",
    "            print('Python')\n",
    "            print('许志超')\n",
    "        place = input('输入课程查看你的教室:')\n",
    "        if place == 'python':\n",
    "            print('2实-203')\n",
    "            break"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "96e5bd93",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
